<?php

namespace App\Exceptions;

class CollectionException extends BaseException
{
    const CODE_1001 = 1001;
    const CODE_1002 = 1002;
    const CODE_1003 = 1003;

    protected int   $baseCode = self::BASE_CODE_OF_COLLECTION;    //
    protected array $showMsg  = [
        self::CODE_1001 => '藏品不存在',
        self::CODE_1002 => '藏品文件不存在',
        self::CODE_1003 => '请先完善藏品文件',
    ];

    function __construct($msg = '', $code = 0)
    {
        parent::__construct($msg, $code);
    }
}
